package com.mashibing.jvm.classLoaderDemo2;

public class Test {
    public static void main(String[] args) {
        MyClassLoader myClassLoader = new MyClassLoader("F:/java/code/java/JVM/file/");
        try {
            Class clazz1 = myClassLoader.findClass("Person");
            System.out.println(clazz1);
            System.out.println(clazz1.getClassLoader());
        } catch (Exception e) {
            e.printStackTrace();
        }

        MyClassLoader myClassLoader2 = new MyClassLoader("F:/java/code/java/JVM/src/");
        try {
            Class clazz2 = myClassLoader2.findClass("com.mashibing.jvm.basic.Person");
            System.out.println(clazz2);
            System.out.println(clazz2.getClassLoader());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}
